package com.zuoban.storage.api;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.io.file.FileNameUtil;

import java.io.InputStream;
import java.util.Date;

/**
 * @BelongsProject: zuoban-boot
 * @BelongsPackage: com.zuoban.storage.api
 * @Author: zxy
 * @CreateTime: 2022-10-10  10:59
 * @Description: 存储服务api 直接注入该实现类即可
 */
public interface StorageApi {

    String getNewFileName(String fileName);

    String getNewPath(String... prefix);

    String getNewPath(String fileName);

    String upload(InputStream inputStream, String path);
}
